<?php
/**
 * @file search.php(搜索结果页)
 * @package Japan-Style
 */
?>
<?php get_header(); ?><div id="content">
<?php if (have_posts()) : ?>
<h2>Search Results: <span><?php the_search_query(); ?></span></h2>
	<div id="navigation">
		<div class="alignleft"><?php next_posts_link('&laquo; 前往下一页') ?></div>
		<div class="alignright"><?php previous_posts_link('返回上一页 &raquo;') ?></div>
	</div>
<?php while (have_posts()) : the_post(); ?>
	<div class="post" id="post-<?php the_ID(); ?>">
		<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
		<?php the_excerpt(); ?>
	 	<div class="post-info">File Under <?php the_category(', ') ?> | <?php the_tags('关键字: ', ', ', ''); ?><br /><?php the_author() ?> on <?php the_time('F jS, Y') ?> | <?php comments_popup_link('No Comments ', '1 Comment ', '% Comments '); ?><?php edit_post_link('Edit', '&nbsp;|&nbsp;'); ?></div>
	</div>
<?php endwhile; ?>
<div id="pages"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
<?php else : ?><p class="center">对不起，没有找到你想要的。 或许尝试一下另一个关键字可以得到结果。</p>
<?php endif; ?>
</div><!-- #centent -->
<?php get_sidebar(); ?><?php get_footer(); ?>